<template>
	<view class="p-3 person">
		<view class="top">
			客户名称：{{userInfo.moniker}}
		</view>
		<view class="btn-line">
		</view>
		<view class="personQr">
			<image :src="userInfo.code" mode="" class="image"></image>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			userInfo: {
				type: Object,
				default: null
			},
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.person {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;

		.top {
			background: linear-gradient(90deg, #0873DE 0%, #C7EACE 100%);
			box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
			color: #fff;
			padding: 10rpx 20rpx;
			border-radius: 18rpx 20rpx 0 0;
			width: 90%;
		}

		.btn-line {
			padding: 0rpx 20rpx;
			margin-top: 40rpx;
			height: 12rpx;
			border-radius: 8rpx;
			background: linear-gradient(90deg, #0873DE 0%, #C7EACE 100%);
			box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
			width: 90%;
		}

		.personQr {
			background: #FFFFFF;
			box-shadow: 0px 2px 4px rgba(21, 125, 250, 0.2);
			width: 75%;
			padding: 40rpx;
			display: flex;
			justify-content: center;
			align-items: center;

			.image {
				width: 350rpx;
				height: 350rpx;
			}
		}
	}
</style>
